//
//  AboutUsDetailViewController.m
//  RSW.IOS
//
//  Created by zhaiqiuqiu on 16/12/12.
//  Copyright © 2016年 com.xtion.crm. All rights reserved.
//

#import "AboutUsDetailViewController.h"

@interface AboutUsDetailViewController ()<UIWebViewDelegate>
{
    UIWebView *_webView;
    NSString *_url;
}
@end

@implementation AboutUsDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self checkSession];
    
    _url =
    @"http://222.161.197.93:8071/html5/company_gtcz.html";
    
    [self initUI];
}

- (void)initUI
{
    CGFloat top = [XUINavigationController navigationController].navigationBar.bottom;
    
    _webView = [[UIWebView alloc]initWithFrame:CGRectMake(0, top, self.view.width, self.view.height)];
    _webView.scalesPageToFit = YES;
    _webView.delegate = self;
    _webView.scrollView.scrollEnabled = YES;

    [self.view addSubview:_webView];
    
    NSURL *url = [NSURL URLWithString:_url];
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [_webView loadRequest:request];
}

#pragma mark --
#pragma mark -- webView delegate
-(void)webViewDidFinishLoad:(UIWebView *)webView
{
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
